package com.zrrd.gmall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zrrd.gmall.model.product.SpuSaleAttr;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
public interface SpuSaleAttrMapper extends BaseMapper<SpuSaleAttr>{
    //根据id查询销售属性以及对应属性列表
    List<SpuSaleAttr> getSpuSaleAttrList(Long spuId);
    //根据skuId和spuId查询sku对应的销售属性，以及sku选中的
    List<SpuSaleAttr> getSpuSaleAttrListBySkuId(@Param("skuId") Long skuId,@Param("spuId") Long spuId);

}
